import http from '@/plugins/axios'

export function getShopDistributeRulePage(data) {
  return http({
    method: 'POST',
    url: '/ykf/shopDistributeRule/page',
    data
  })
}

export function addShopDistributeRule(data) {
  return http({
    method: 'POST',
    url: '/ykf/shopDistributeRule/save',
    data
  })
}

export function updateShopDistributeRule(data) {
  return http({
    method: 'POST',
    url: '/ykf/shopDistributeRule/update',
    data
  })
}

export function getShopDistributeRuleDetail(data) {
  return http({
    method: 'POST',
    url: '/ykf/shopDistributeRule/info',
    data
  })
}

export function removeScriptManagePage(data) {
  return http({
    method: 'POST',
    url: '/ykf/shopDistributeRule/delete',
    data
  })
}


export function setDefaultScriptManagePage(data) {
  return http({
    method: 'POST',
    url: '/ykf/shopDistributeRule/setDefault',
    data
  })
}

export function customerCheckDistributeRule(data) {
  return http({
    method: 'POST',
    url: '/ykf/shopDistributeRule/customerCheck',
    data
  })
}
